package net.melon.sysres.provider;

import java.io.File;
import java.io.IOException;
import java.io.OutputStream;

import net.esj.basic.core.engine.provider.IProvider;
import net.melon.sysres.pojo.Attachment;


public interface AttachmentProvider extends IProvider{

	Attachment getAttachment(String id);
	
	Attachment saveAttachment(File templateFile,String templateFileName)throws IOException ;
	
	Attachment updateAttachment(String id,File templateFile,String templateFileName)throws IOException ;
	
	void deleteAttachment(String id);
	
	Attachment outputAttachment(OutputStream outputStream,String id)throws IOException ;
}
